package net.kaaass.zerotierfix.events;

import com.zerotier.sdk.NodeStatus;
import com.zerotier.sdk.Version;
/**
 * 节点状态事件
 *
 * 在遇到 {@link NodeStatusRequestEvent} 或 Zerotier 事件时触发
 */
public class NodeStatusEvent {

    /**
     * 节点自身状态
     */
    private final NodeStatus status;

    /**
     * 客户端 Zerotier 程序版本
     */
    private final Version clientVersion;

    public NodeStatus getStatus() {
        return status;
    }

    public Version getClientVersion() {
        return clientVersion;
    }

    public NodeStatusEvent(NodeStatus status, Version clientVersion) {
        this.status = status;
        this.clientVersion = clientVersion;
    }
}
